﻿using Coldairarrow.Entity.Interface;
using NetTopologySuite.Mathematics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Coldairarrow.Business.Interface.EC_ReqDTO_SyncOrder;

namespace Coldairarrow.Business.Interface
{

    public class EC_ReqDTO_SyncReceiving
    {
        public string sign { get; set; }
        public long timestamp { get; set; }
        public string biz_content { get; set; }


        public class Biz_Content
        {
            public string RowId { get; set; }
            public string RowId__before { get; set; }
            /// <summary>
            /// 操作类型，ADD：新增、EDIT：更新
            /// </summary>
            public string action_type { get; set; }
            /// <summary>
            /// 入库单状态：1:草稿5:在途
            /// </summary>
            public int receiving_status { get; set; }
            /// <summary>
            /// 入库类型：0标准1订单退货3中转5其他8不良品入库
            /// </summary>
            public int receiving_type { get; set; }
            /// <summary>
            /// 发往仓库Id（入库类型不为中转时填此字段）
            /// </summary>
            public int warehouse_id { get; set; }
            /// <summary>
            /// 发往仓库代码（入库类型不为中转时填此字段）
            /// </summary>
            public string warehouse_code { get; set; }
            /// <summary>
            ///参考号
            /// </summary>
            public string reference_no { get; set; }
            /// <summary>
            ///跟踪号
            /// </summary>
            public string tracking_number { get; set; }

            /// <summary>
            ///预计到货日期，格式(2017-03-20)）
            /// </summary>
            public string expected_date { get; set; }
            /// <summary>
            ///特殊说明
            /// </summary>
            public string description { get; set; }
            /// <summary>
            ///返回的信息
            /// </summary>
            public string ResultMsg { get; set; }
            /// <summary>
            /// 明细
            /// </summary>
            public List<Product_List> product_list { get; set; } = new List<Product_List>();

            public class Product_List
            {
                /// <summary>
                /// 产品代码
                /// </summary>
                public string product_sku { get; set; }
                /// <summary>
                /// 产品数量
                /// </summary>
                public int product_qty { get; set; }
                /// <summary>
                /// 运输方式代码
                /// </summary>
                public string shipping_method { get; set; }
                /// <summary>
                /// 是否质检：0否1是
                /// </summary>
                public int is_qc { get; set; }

            }
            
        }

    }
}
